package com.ljy.jymail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljy.common.utils.PageUtils;
import com.ljy.jymail.product.entity.AttrEntity;
import com.ljy.jymail.product.vo.AttrRespVo;
import com.ljy.jymail.product.vo.AttrVo;
import com.ljy.jymail.product.vo.attrGroupRelationVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liJiaYao
 * @email 1565643109@qq.com
 * @date 2021-12-20 17:27:48
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId,String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteRelation(attrGroupRelationVo[] vos);


    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);


    /*
    * 在指定的所有属性集合里，挑出检索属性
    *
    * */
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

